package com.qd.panda.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.EqualsAndHashCode;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.math.BigDecimal;


/**
 * 收益设置
 *
 * @author sjk
 */
@Getter
@Setter
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@TableName("panda_car_park_revenue")
public class CarParkRevenue extends Model<CarParkRevenue> implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @TableId(value = "rid", type = IdType.ASSIGN_ID)
    private String rid;
    /**
     * 天数
     */
    @TableField("days")
    private Integer days;
    /**
     * 日收益
     */
    @TableField("day_revenue")
    private BigDecimal dayRevenue;
    /**
     * 总收益
     */
    @TableField("total_revenue")
    private BigDecimal totalRevenue;
    /**
     * 停车场标识
     */
    @TableField("p_id")
    private String pId;
    /**
     * 租赁类型
     */
    @TableField("lease_type")
    private String leaseType;

    public void freeData() {
        this.rid = null;
        this.days = null;
        this.dayRevenue = null;
        this.totalRevenue = null;
        this.pId = null;
        this.leaseType = null;
    }

}
